home *** CD-ROM | disk | FTP | other *** search
/ Chip 2000 April / Chip CMCD0400.iso / SOFTWARE / Demo / InfoPulse / GateKeeper / gk3full.exe / data1.cab / ConfigSite_Files / blueball.js next >
Encoding:
Text File  |  1999-06-17  |  722 b   |  47 lines

  1. myname = navigator.appName;
  2. myversion = parseInt(navigator.appVersion);
  3. var OK = false;
  4.  
  5. if ( (myname == "Netscape" && myversion >= 3) || ( myname == "Microsoft Internet Explorer" && myversion > 3.02))
  6. {
  7.     OK = true;
  8.  
  9.     bar = new Image();
  10.     bar.src = "/images/empty.gif";
  11.  
  12.     point = new Image();
  13.     point.src = "/images/blueball.gif";
  14. }
  15.  
  16. var j=0;
  17. var lasti="none";
  18.  
  19. function on(name)
  20. {
  21.     if (OK)
  22.     {
  23.         if ( document[name] != null )
  24.             document[name].src = eval("bar.src");
  25.     }
  26. }
  27.  
  28. function off(name)
  29. {
  30.     if (OK)
  31.     {
  32.         if ( document[name] != null )
  33.             document[name].src = eval("point.src");
  34.     }
  35. }
  36.  
  37. function pict(name)
  38. {
  39.     if (lasti != "none")
  40.     {
  41.         on(lasti);
  42.     }
  43.     off(name);
  44.     lasti=name;
  45. }
  46.  
  47.